import Vue from 'vue'
import Router from 'vue-router'
import Login from '../views/Login.vue'
import Home from '../Home.vue'
import Job from '../views/Job.vue'
import Record from '../views/Record.vue'
import Apply from '../views/Apply.vue'
import Manager from '../views/Manager.vue'
import Roles from '../views/Roles.vue'
import Logg from '../views/Logg.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/home',
      component: Home
    },
    {
      path: '/home',
      component: Home,
      children: [
        {path: '/job', component: Job}
      ]
    },
    {
      path: '/home',
      component: Home,
      children: [
        {path: '/record', component: Record}
      ]
    },
    {
      path: '/home',
      component: Home,
      children: [
        {path: '/apply', component: Apply}
      ]
    },
    {
      path: '/home',
      component: Home,
      children: [
        {path: '/manager', component: Manager}
      ]
    },
    {
      path: '/home',
      component: Home,
      children: [
        {path: '/roles', component: Roles}
      ]
    },
    {
      path: '/home',
      component: Home,
      children: [
        {path: '/log', component: Logg}
      ]
    }
  ]
})
